<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
  #canvas {border: 1px  solid  #333;}
  </style>
</head>
<body>
  <canvas id="canvas" width="300" height="300"></canvas>
  <script>
      let canvas = document.getElementById('canvas');
      /* 绘制上下文 */
      let ctx = canvas.getContext("2d")
      /* 设置开始路径 */
      ctx.beginPath();
      /* 1-2  x,y */
      /* 3  radius */
      /* 4-5 startAngle  endAngle */
      /* ctx.arc(x,y,radius,startAngle,endAngle) */
      ctx.arc(150, 150, 100, 0, Math.PI * 2);
      ctx.closePath();
      ctx.stroke();
  </script>
</body>

</html>